package com.mxpio.erp.common.equipment.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.jpa.policy.impl.UUIDPolicy;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_PROJECT_ASSISTING_PERSONNEL")
@Schema(description="协助人员")
public class ProjectAssistingPersonnel extends BaseEntity {

    @Id
    @Generator(policy = UUIDPolicy.class)
    @Column(name = "ID_", updatable = false)
    @Schema(description = "主键")
    private String id;

    @Column(name = "PRO_CODE_")
    @Schema(description = "项目编码")
    private String proCode;

    @Column(name = "ASSISTANT_USER_ID_")
    @Schema(description = "工号")
    private String assistantUserId;

    @Column(name = "ASSISTANT_NAME_")
    @Schema(description = "姓名")
    private String assistantName;

    @Column(name = "WORK_TIME_")
    @Schema(description = "工时")
    private Integer workTime;

    @Column(name = "ASSISTANT_CONTENT_")
    @Schema(description = "协助内容")
    private String assistantContent;

}
